home *** CD-ROM | disk | FTP | other *** search
/ ...taking it to the Macs! / ...taking it to the Macs!.iso / Extras / ActiveX Mac SDK / ActiveX SDK / Sample Controls / Events / CEventSend.h < prev    next >
Encoding:
Text File  |  1996-12-16  |  1.2 KB  |  42 lines  |  [TEXT/CWIE]

  1. // =================================================================================
  2. //
  3. //    CEventSend.h                ©1996 Microsoft Corporation All rights reserved.
  4. //
  5. // =================================================================================
  6.  
  7. #ifndef _H_CEventSend
  8. #define _H_CEventSend
  9. #pragma once
  10.  
  11. #include "CBaseControl.h"
  12.  
  13. class CEventSend : public CBaseControl
  14. {
  15.  
  16. public:
  17.     //    *** CEventSend methods ***
  18.     CEventSend(void);
  19.     virtual ~CEventSend(void);
  20.     
  21.     STDMETHOD (FireEvent)(REFIID inRefID, Int32 inEventID, PlatformEvent* inEvent);
  22.     STDMETHOD (FireOneEvent)(REFIID inRefID, Int32 inEventID, IUnknown* inEventTarget, PlatformEvent* inEvent);
  23.     
  24.     // *** IControl methods ***
  25.     STDMETHOD (Draw) (THIS_ DrawContext* inContext);
  26.     STDMETHOD (GetID)(THIS_ Int32 inBufferSize, Char8* outID);
  27.     STDMETHOD (DoMouse)(THIS_ MouseEventType inMouseET, PlatformEvent* inEvent);
  28.     STDMETHOD (DoKey)(THIS_ KeyEventType inKeyET, Char8 inChar, PlatformEvent* inEvent);
  29.     STDMETHOD (SetFocus)(THIS_ FocusCommand inCommand, FocusSet inFocus);
  30.     
  31.     //  *** IPersistPropertyBag methods ***
  32.     STDMETHOD(Load)(IPropertyBag* PropBag, IErrorLog* ErrorLog);
  33.  
  34. private:
  35.     Char8*        mIdP;
  36.     Str255        mMessage;
  37.     Int32        mLastMouseUpTime;
  38.     FocusSet    mOwnedFoci;
  39. };
  40.  
  41. #endif
  42.